###家具类
class Furniture:
    def __init__(self, name, occupy_area):
        self.name = name
        self.occup_area = occupy_area  # 占用面积


###房子类
class House:
    def __init__(self, type, furniture):
        self.type = type
        self.remaining_area = 100  # 房子的初始面积为100
        self.furniture = furniture
        # self.item_furniture = item_furniture

    def addFurniture(self):
        self.remaining_area -= self.occupy_area


F1 = Furniture('桌子', 2)

H1 = House('三房两卫一厅', F1)

H1.addFurniture()
print(H1.remaining_area)
